﻿var oracledb = require('oracledb');
//oracledb使用示例
oracledb.getConnection(
  {
    user          : "scott",
    password      : "tigar",
    connectString : "localhost/GORACLE"
  },
  function(err, connection)
  {
    if (err) { console.error(err.message); return; }
    connection.execute(
      "SELECT tname ,tabtype FROM tab",
      function(err, result)
      {
        if (err) { console.error(err.message); return; }
        console.log(result.rows);
      });
  });